const registerMessageHandlers = require('./message')
const registerVoiceCallHandlers = require('./voicecall')

const onConnection = (io, socket) => {
  registerMessageHandlers(io, socket);
  registerVoiceCallHandlers(io, socket);
}

exports.onConnection = onConnection;